ioemu: fix offset of MSI-X memory-mapped table.
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 5 Sep 2008 10:18:20 +0000 (11:18 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 5 Sep 2008 10:18:20 +0000 (11:18 +0100)
commitb95d528041324423fc91174913ec0d98dad75e6f
tree361e0792044b35be8c1d4dd9327a49dc6a3afcc8
parent8790685cfd2db3ad074c685d6856c3c30e20f006
ioemu: fix offset of MSI-X memory-mapped table.

Current code does not set dev->msix->table_off variable.
The offset of MSI-X memory mapped table is treated as 0.
The wrong region is unmapped from guest physical memory space.
As a result, guest device driver can't access memory mapped resource.

Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
tools/ioemu/hw/pt-msi.c